home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.1 (Developer) [x86] / NeXT Step 3.1 Intel dev.cdr.dmg / NextDeveloper / Headers / bsd / dev / i386 / cram.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-30  |  2.4 KB  |  82 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1989 Carnegie-Mellon University
  4.  * All rights reserved.  The CMU software License Agreement specifies
  5.  * the terms and conditions for use and redistribution.
  6.  */
  7. /* 
  8.  * HISTORY
  9.  * $Log:    cram.h,v $
  10.  * Revision 1.5.1.3  90/11/27  13:41:53  rvb
  11.  *     Synched 2.5 & 3.0 at I386q (r1.5.1.3) & XMK35 (r2.3)
  12.  *     [90/11/15            rvb]
  13.  * 
  14.  * Revision 2.2  90/05/03  15:41:48  dbg
  15.  *     First checkin.
  16.  * 
  17.  * Revision 1.5.1.2  90/02/28  15:49:23  rvb
  18.  *     Fix numerous typo's in Olivetti disclaimer.
  19.  *     [90/02/28            rvb]
  20.  * 
  21.  * Revision 1.5.1.1  90/01/08  13:31:57  rvb
  22.  *     Add Olivetti copyright.
  23.  *     [90/01/08            rvb]
  24.  * 
  25.  * Revision 1.5  89/09/25  12:26:32  rvb
  26.  *     File was provided by Intel 9/18/89.
  27.  *     [89/09/23            rvb]
  28.  * 
  29.  */
  30.  
  31. /*
  32.  * cram.h
  33.  */
  34.  
  35. /*
  36.   Copyright 1988, 1989 by Olivetti Advanced Technology Center, Inc.,
  37. Cupertino, California.
  38.  
  39.         All Rights Reserved
  40.  
  41.   Permission to use, copy, modify, and distribute this software and
  42. its documentation for any purpose and without fee is hereby
  43. granted, provided that the above copyright notice appears in all
  44. copies and that both the copyright notice and this permission notice
  45. appear in supporting documentation, and that the name of Olivetti
  46. not be used in advertising or publicity pertaining to distribution
  47. of the software without specific, written prior permission.
  48.  
  49.   OLIVETTI DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
  50. INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
  51. IN NO EVENT SHALL OLIVETTI BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
  52. CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  53. LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
  54. NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUR OF OR IN CONNECTION
  55. WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  56. */
  57.  
  58. /* 
  59.  * outb(CMOS_ADDR, addr);
  60.  * result = inb(CMOS_DATA);
  61.  * 
  62.  * where "addr" tells what value you want to read (some are listed 
  63.  * below).  Interrupts should be disabled while you do this.
  64.  */
  65.  
  66. /* I/O ports */
  67.  
  68. #define CMOS_ADDR    0x70        /* port for CMOS ram address */
  69. #define CMOS_DATA    0x71        /* port for CMOS ram data */
  70.  
  71.  
  72. /* Addresses, related masks, and potential results */
  73.  
  74. #define CMOS_EB        0x14        /* read Equipment Byte */
  75. #define CM_SCRMSK    0x30        /* mask for EB query to get screen */
  76. #define CM_EGA_VGA    0x00        /* "not CGA or MONO" */
  77. #define CM_CGA_40    0x10
  78. #define CM_CGA_80    0x20
  79. #define CM_MONO_80    0x30
  80.  
  81.  
  82.